package com.ztgf.order.api.cms;

import com.ztgf.common.constant.Result;
import com.ztgf.order.models.bo.OrderBusinessContractBO;
import com.ztgf.order.models.service.IOrderContractRelationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单合同关系表控制器
 *
 * @author chenyu.wang
 * @Date 2020-06-03 15:58:52
 */

@RestController
@RequestMapping("/cms/orderContractRelation")
@Slf4j
@Api(value = "OrderContractRelationController", tags = "订单合同关系表接口")
public class OrderContractRelationController {

    @DubboReference
    private IOrderContractRelationService orderContractRelationService;

    @PostMapping(value = "/queryBusinessContractList")
    @ApiOperation(value = "后台管理系统交易合同列表", notes = "后台管理系统交易合同列表")
    public Result queryBusinessContractList(OrderBusinessContractBO bo,Integer contactState) {
        return new Result<>(orderContractRelationService.queryBusinessContractList(bo,contactState));
    }
}
